﻿<%@ Page Language="C#" MasterPageFile="Logado.Master" AutoEventWireup="true" CodeBehind="Ferreiro.aspx.cs" Inherits="Novapangeia.Web.Ferreiro" %>

<asp:Content ID="contentPageDefault" ContentPlaceHolderID="mainContentPlaceHolder" runat="server">    
   <div align="center">
    
        <asp:Table ID="tabelaProducaoArmas" runat="server" HorizontalAlign="Center" 
            CellPadding="2" CellSpacing="2">
            <asp:TableHeaderRow>
                <asp:TableHeaderCell RowSpan="2">Arma</asp:TableHeaderCell>
                <asp:TableHeaderCell ColumnSpan="2">Custo</asp:TableHeaderCell>
                <asp:TableHeaderCell RowSpan="2">Quantidade</asp:TableHeaderCell>
            </asp:TableHeaderRow>
            <asp:TableHeaderRow>
                <asp:TableHeaderCell><asp:Image ID="Image2" runat="server" ImageUrl="images/madeira.png" /></asp:TableHeaderCell>
                <asp:TableHeaderCell><asp:Image ID="Image3" runat="server" ImageUrl="images/minerios.png" /></asp:TableHeaderCell>
            </asp:TableHeaderRow>
            
            <asp:TableRow ID="rowLancas">
                <asp:TableCell>Lança</asp:TableCell>
                <asp:TableCell>15</asp:TableCell>
                <asp:TableCell>5</asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtLanca" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="validatorTxtLanca" runat="server" ErrorMessage="*" ControlToValidate="txtLanca" ValidationExpression="vldArmas"></asp:RegularExpressionValidator>
                </asp:TableCell>
            </asp:TableRow>
            
            <asp:TableRow ID="rowEspadas">
                <asp:TableCell>Espada</asp:TableCell>
                <asp:TableCell>5</asp:TableCell>
                <asp:TableCell>15</asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtEspada" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="validatorTxtEspada" runat="server" ErrorMessage="*" ControlToValidate="txtEspada" ValidationExpression="vldArmas"></asp:RegularExpressionValidator>
                </asp:TableCell>
            </asp:TableRow>
            
            <asp:TableRow ID="rowArcos">
                <asp:TableCell>Arco</asp:TableCell>
                <asp:TableCell>20</asp:TableCell>
                <asp:TableCell>5</asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtArcos" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="validatorTextArcos" runat="server" ErrorMessage="*" ControlToValidate="txtArcos" ValidationExpression="vldArmas"></asp:RegularExpressionValidator>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        <asp:Button ID="btnFabricarArmas" runat="server" Text="Fabricar" 
            ValidationGroup="vldArmas" onclick="btnFabricarArmas_Click" />
    </div>
</asp:Content>